import Vue from 'vue'
import Router from 'vue-router'
import test from '@/components/test'
import tac from '@/components/tac'
import all from '@/components/My_info/My_order/all'
import finished from '@/components/My_info/My_order/finished'
import paid from '@/components/My_info/My_order/paid'
import unpay from '@/components/My_info/My_order/unpay'
import cancelled from '@/components/My_info/My_order/cancelled'
import points_search from '@/components/My_info/points_search'
import points_shop from '@/components/My_info/points_shop'
import menu from '@/components/menu/menu'
import quit_user from '@/components/quit_user/quit_user'
import cancel_reserve from '@/components/seat_reserve/cancel_reserve'
import change_seat_intro from '@/components/seat_reserve/change_seat_intro'
import seat_reserve from '@/components/seat_reserve/seat_reserve'
import detail_cancelled from '@/components/My_info/My_order/detail_cancelled'
import detail_paid from '@/components/My_info/My_order/detail_paid'
import detail_unpay from '@/components/My_info/My_order/detail_unpay'
import detail_finished from '@/components/My_info/My_order/detail_finished'
import set_up_new from '@/components/seat_reserve/set_up_new'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'tac',
      component: tac,
      children: [
          {
          path: '/my_info/myorder/finished/detail_finished',
            name: 'detail_finished',
            component: detail_finished
          },
          {
            path: '/my_info/myorder/paid/detail_paid',
            name: 'detail_paid',
            component: detail_paid
          },
          {
            path: '/my_info/myorder/unpay/detail_unpay',
            name: 'detail_unpay',
            component: detail_unpay
          },
          {
            path: '/my_info/myorder/cancelled/detail_cancelled',
            name: 'detail_cancelled',
            component: detail_cancelled
          },
        {
          path: '/menu/menu',
          name: 'menu',
          component: menu
        },
        {
          path: '/menu/menu',
          name: 'menu',
          component: menu
        },
        {
          path: '/my_info/myorder/all',
          name: 'all',
          component: all,
        },
        {
          path: '/my_info/myorder/finished',
          name: 'finished',
          component: finished,
        },
        {
          path: '/my_info/myorder/paid',
          name: 'paid',
          component: paid,
        },
        {
          path: '/my_info/myorder/unpay',
          name: 'unpay',
          component: unpay,
        },
        {
          path: '/my_info/myorder/cancelled',
          name: 'cancelled',
          component: cancelled,
        },
        {
          path: '/my_info/points_search',
          name: 'points_search',
          component: points_search
        },
        {
          path: '/my_info/points_shop',
          name: 'points_shop',
          component: points_shop
        },
        {
          path: '/quit_user/quit_user',
          name: 'quit_user',
          component: quit_user
        },
        {
          path: '/seat_reserve/cancel_reserve',
          name: 'cancel_reserve',
          component: cancel_reserve
        },
        {
          path: '/seat_reserve/change_seat_intro',
          name: 'change_seat_intro',
          component: change_seat_intro
        },
        {
          path: '/seat_reserve/seat_reserve',
          name: 'seat_reserve',
          component: seat_reserve
        },
        {
          path: '/seat_reserve/set_up_new',
          name: 'set_up_new',
          component: set_up_new
        }
      ]
    },
  ]
})


